﻿
namespace MyFurion.Application.Dtos
{
    /// <summary>
    /// 组织机构信息查询条件
    /// </summary>
    public class OrgInfoPage:PageBaseInput
    {
        /// <summary>
        /// 机构名称
        /// </summary>
        public string OrgName { get; set; }
        /// <summary>
        /// 机构编码
        /// </summary>
        public string OrgCode { get; set; }
    }
    /// <summary>
    /// 机构新增信息
    /// </summary>
    public class OrgInfoAdd
    {
        /// <summary>
        /// 父级id
        /// </summary>
        public long? ParentId { get; set; }
        /// <summary>
        /// 机构编码
        /// </summary>
        [Required(ErrorMessage = "机构编码不能为空")]
        public string OrgCode { get; set; }
        /// <summary>
        /// 机构名称
        /// </summary>
        [Required(ErrorMessage = "机构名称不能为空")]
        public string OrgName { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public EnumStatus Status { get; set; }
    }
    /// <summary>
    /// 机构修改信息
    /// </summary>
    public class OrgInfoUpdate:OrgInfoAdd
    {
        /// <summary>
        /// id
        /// </summary>
        public long Id { get; set; }
    }
}
